﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MainMT.master" CodeFile="PersonRegieter.aspx.cs" Inherits="PersonRegieter" %>

<%@ Register Src="LoginForm.ascx" TagName="LoginForm" TagPrefix="uc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <link href="css/default.css" rel="stylesheet" />
</asp:Content>
 
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="leftmain">
        <div class="topbox">
            <div id="loginbox" class="leftBox">
                <div class="loginChioce">
                    <span class="leftTop">会员登录</span>
                </div>
                <uc1:LoginForm ID="LoginForm" runat="server" />
            </div>
        </div>
        <div class="leftBox">
            <div class="loginChioce">
                <span class="leftTop">招聘会</span>
                <a class="more" href="WantMeet.aspx" target="_blank"><span>more》</span></a>
            </div>
            <div>
                <marquee behavior="scroll" onfocus="stop();" onmouseover="stop();" onmouseout="start();" atomicselection="False" direction="up" height="100px" scrollamount="1">
                        <asp:DataList id="DataList1"  HorizontalAlign="left" DataSourceID="SqlDataSource1" DataKeyField="wmid" runat="server">
                            <ItemTemplate>
                                <asp:Image id="Image2" runat="server" __designer:wfdid="w29" ImageUrl="~/images/rss.gif" Width="10px" Height="10px"></asp:Image>
                                <asp:LinkButton id="LinkButton1" runat="server" Text='<%# Bind("wmititle") %>' __designer:wfdid="w30" onclientclick='<%# "window.showModalDialog(\"WantMeetInfo.aspx?wmid="+Eval("wmid")+"\")" %>'></asp:LinkButton> 
                            </ItemTemplate>
                        </asp:DataList></marquee>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" SelectCommand="SELECT * FROM [WantMeetInfo]" ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"></asp:SqlDataSource>
            </div>
        </div>
        <div class="leftBox">
            <div class="loginChioce">
                <span class="leftTop">求职指导</span>
                <a class="more" href="JobSeeker.aspx" target="_blank"><span>more》</span></a>
            </div>
            <div>
                <asp:DataList ID="dlqz" runat="server" CaptionAlign="Bottom" CellPadding="3" DataKeyField="jsid" DataSourceID="SqlDataSource2" Height="20px">
                    <ItemTemplate>
                        <asp:Image ID="Image3" runat="server" Height="10px" ImageUrl="~/images/tj.jpg" Width="10px" />
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "JobSeekerInfo.aspx?jsid="+Eval("jsid")+"&js="+Eval("jscid") %>' Text='<%# Eval("jsname") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:DataList>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>" SelectCommand="SELECT top 10 * FROM [jobseeker] ORDER BY [jstime] DESC"></asp:SqlDataSource>
            </div>
        </div>
    </div>
    <div class="rightmain">
        <div class="rightHeader1">
            <div class="rightHLeft"><span class="rightHeaderTitle">当前位置</span></div>
            <div class="rightHMiddle2">
                <span>
                    <a href="PersonRegieter.aspx" class="moreRight" style="float: left;">注册会员</a>
                </span>
            </div>
            <div class="rightHRight"></div>
        </div>

        <div style="margin-top: 10px; border: 1px solid #ddd;">
            <div style="margin-top:10px;">
                <table id="personRegiste" cellpadding="3" style="width: 100%;">
                    <tr>
                        <td style="width: 212px; text-align: right">姓名：</td>
                        <td style="width: 220px; text-align: left;">
                            <asp:TextBox ID="txtname" Width="200px" runat="server" CssClass="rtxt"></asp:TextBox>
                        </td>
                        <td style="text-align: left;">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                ControlToValidate="txtname" Display="Dynamic" ErrorMessage="*"
                                ValidationGroup="2"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">E-Mail:</td>
                        <td style="text-align: left;">
                            <asp:TextBox ID="txtmail" runat="server" Width="200px" CssClass="rtxt"></asp:TextBox>
                        </td>
                        <td style="text-align: left;">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"
                                ControlToValidate="txtmail" Display="Dynamic" ErrorMessage="*" ValidationGroup="2"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                                ControlToValidate="txtmail" Display="Dynamic" ErrorMessage="E-Mail格式错误！"
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                ValidationGroup="2"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">登录密码：</td>
                        <td style="text-align: left;">
                            <asp:TextBox ID="txtpwd" runat="server" Width="200px" TextMode="Password"
                                CssClass="rtxt"></asp:TextBox>
                        </td>
                        <td style="text-align: left;">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                                ControlToValidate="txtpwd" Display="Dynamic" ErrorMessage="*" ValidationGroup="2"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server"
                                ControlToValidate="txtpwd" ErrorMessage="请输入六位密码！" ValidationExpression="\d{6}"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">确认密码：</td>
                        <td style="text-align: left;">
                            <asp:TextBox ID="txtpwd1" runat="server" Width="200px" TextMode="Password" CssClass="rtxt"></asp:TextBox>
                        </td>
                        <td style="text-align: left;">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
                                ControlToValidate="txtpwd1" Display="Dynamic" ErrorMessage="*" ValidationGroup="2"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CompareValidator1" runat="server"
                                ControlToCompare="txtpwd" ControlToValidate="txtpwd1" Display="Dynamic"
                                ErrorMessage="确认密码错误！"></asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">性别：</td>
                        <td style="text-align: left;">
                            <asp:RadioButton ID="rbgg" runat="server" Width="50px" Checked="True" GroupName="sex"
                                Text="男" />
                            <asp:RadioButton ID="rbmm" runat="server" GroupName="sex" Text="女" />
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">年龄：</td>
                        <td style="text-align: left;">
                            <asp:TextBox ID="txtage" runat="server" Width="190px" CssClass="rtxt"></asp:TextBox>岁
                        </td>
                        <td style="text-align: left;">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
                                ControlToValidate="txtage" Display="Dynamic" ErrorMessage="*" ValidationGroup="2"></asp:RequiredFieldValidator>
                            <asp:RangeValidator ID="RangeValidator1" runat="server"
                                ControlToValidate="txtage" Display="Dynamic" ErrorMessage="年龄错误(18-50)！"
                                MaximumValue="50" MinimumValue="18" Type="Integer" ValidationGroup="2"></asp:RangeValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">户籍：</td>
                        <td style="text-align: left;">
                            <asp:DropDownList ID="ddlp" runat="server" Width="90px" DataSourceID="SqlDataSource3"
                                DataTextField="prname" DataValueField="proid" AutoPostBack="True"
                                OnSelectedIndexChanged="ddlp_SelectedIndexChanged">
                            </asp:DropDownList>
                            省<asp:DropDownList ID="ddlc" runat="server" Width="90px" DataSourceID="SqlDataSource4"
                                DataTextField="ciname" DataValueField="ciid">
                            </asp:DropDownList>
                            市</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">现住：</td>
                        <td style="text-align: left;">
                            <asp:DropDownList ID="ddlnp" runat="server" Width="90px" DataSourceID="SqlDataSource3"
                                DataTextField="prname" DataValueField="proid" AutoPostBack="True"
                                OnSelectedIndexChanged="ddlp_SelectedIndexChanged">
                            </asp:DropDownList>
                            省<asp:DropDownList ID="ddlnc" runat="server" Width="90px" DataSourceID="SqlDataSource5"
                                DataTextField="ciname" DataValueField="ciid">
                            </asp:DropDownList>
                            市</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">学校：</td>
                        <td style="text-align: left;">
                            <asp:TextBox ID="txtschool" runat="server" Width="200px" CssClass="rtxt"></asp:TextBox>
                        </td>
                        <td style="text-align: left;">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
                                ControlToValidate="txtschool" Display="Dynamic" ErrorMessage="*" ValidationGroup="2"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">电话：</td>
                        <td style="text-align: left;">
                            <asp:TextBox ID="txttel" runat="server" Width="200px" CssClass="rtxt"></asp:TextBox>
                        </td>
                        <td style="text-align: left;">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
                                ControlToValidate="txttel" Display="Dynamic" ErrorMessage="*" ValidationGroup="2"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">学位：</td>
                        <td style="text-align: left;">
                            <asp:DropDownList ID="ddlpk" runat="server" Width="90px">
                                <asp:ListItem Selected="True">大专</asp:ListItem>
                                <asp:ListItem>本科</asp:ListItem>
                                <asp:ListItem>研究生</asp:ListItem>
                                <asp:ListItem>硕士</asp:ListItem>
                                <asp:ListItem>博士</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                </table>
                <%--注册按钮--%>
                <div style="height: 40px; margin-left: 250px; margin-top: 10px;">
                    <asp:Button ID="Button2" Height="30px" Width="60px" runat="server" OnClick="Button1_Click" Text="提交" BackColor="#159fde" ForeColor="White" ValidationGroup="2" />&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button1" Height="30px" Width="60px" runat="server" OnClientClick="window.close();" BackColor="#159fde" ForeColor="White" Text="退出" />
                </div>
            </div>
        </div>
    </div>
    <asp:Label ID="Label1" runat="server"></asp:Label>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server"
        ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
        SelectCommand="SELECT * FROM [tb_province]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource4" runat="server"
        ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
        SelectCommand="SELECT * FROM [tb_city] WHERE ([proid] = @proid)">
        <SelectParameters>
            <asp:ControlParameter ControlID="ddlp" DefaultValue="1" Name="proid"
                PropertyName="SelectedValue" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource5" runat="server"
        ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
        SelectCommand="SELECT * FROM [tb_city] WHERE ([proid] = @proid)">
        <SelectParameters>
            <asp:ControlParameter ControlID="ddlnp" DefaultValue="1" Name="proid"
                PropertyName="SelectedValue" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
